import {  postAction,getAction,deleteAction,putAction } from './requestFn'
/** 
 * eg:
   const一个变量= (params)=>什么请求用什么请求的方法(’请求路径‘,params)
*/

// get请求
const getOrder=(params)=>getAction('请求路径',params)
// delete请求
const deleteOrder=(params)=>deleteAction('请求路径',params)
// put请求
const editOrder=(params)=>putAction('请求路径',params)


const addPlaceOrder=(params)=>postAction('/trade/tradeOrder/placeOrder',params)

export {
   addPlaceOrder,
   getOrder,
   deleteOrder,
   editOrder
}